add_definitions(-DTRANSLATION_DOMAIN=\"plasma_containmentactions_contextmenu\")

include_directories(${plasma-workspace_SOURCE_DIR}/libkworkspace)

set(contextmenu_SRCS
    menu.cpp
    menu.h
)

set(krunner_xml ${plasma-workspace_SOURCE_DIR}/krunner/dbus/org.kde.krunner.App.xml)
qt_add_dbus_interface(contextmenu_SRCS ${krunner_xml} krunner_interface)

qt_add_dbus_interface(contextmenu_SRCS ${SCREENSAVER_DBUS_INTERFACE} screensaver_interface)

kcoreaddons_add_plugin(plasma_containmentactions_contextmenu SOURCES ${contextmenu_SRCS} INSTALL_NAMESPACE "plasma/containmentactions")

set_target_properties(plasma_containmentactions_contextmenu PROPERTIES
    OUTPUT_NAME org.kde.contextmenu
)

target_link_libraries(plasma_containmentactions_contextmenu
                      Qt::DBus
                      KF6::Activities
                      KF6::I18n
                      KF6::GlobalAccel
                      KF6::Plasma
                      KF6::XmlGui
                      KF6::KIOCore
                      KF6::KIOGui
                      PW::KWorkspace)
